package main;

import java.awt.*;

import static main.Register.PIG;

public class Pig extends LivingEntity {

    public Pig(double x, double y) {
        super(
                Register.PIG_LEFT,
                Register.PIG_STEP_LEFT,
                Register.PIG_RIGHT,
                Register.PIG_STEP_RIGHT,
                Register.PIG_STAY, x, y
        );
        boxWidth = 32;
        boxHeight = 22;

    }




    @Override
    public void update() {
        super.update();



//        if ((256 <= randomX && randomX <= max && 256 <= randomY && randomY <= -128)
//                /*|| (128 <= randomX && randomX <= 256 && 128 <= randomY && randomY <= 256)*/) {
//


        walk(Game.randInt(0,1000) <= 8);




    }


}
